<?php

		$email = $_POST['email'];

if (isset($_POST['email']));

{

		/////////////////////////
		//Send confirmation email
		/////////////////////////
		
		$to      = $_POST['email_address'];
		$subject = 'Payment confirmation';
			
		$message = file_get_contents('admin_files/emails/'.$email.'.html');	
		$message = str_replace("[PRODUCT_ID}","SUSJS125",$message);
		$message = str_replace("{CUSTOMER_NAME}","Sean Richardson",$message);	
				
		$headers = "From: 24-7Saddles.com <Sales@24-7saddles.com>\r\n";
		$headers .= "MIME-Version: 1.0\r\n";
		$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

		mail($to, $subject, $message, $headers);
		
		/////
		//End
		/////
		

echo $email."<br />";
echo $to	;
	
}

?>